<?xml version="1.0" encoding="UTF-8"?>

<ui:component xmlns="http://www.w3.org/1999/xhtml"
              xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:rich="http://richfaces.org/rich"
              xmlns:c="http://java.sun.com/jstl/core"
              xmlns:gouse="http://www.ganymed.be/gouse/functions"
              xmlns:a4j="http://richfaces.org/a4j">

    <h:form>
        <div id="localeContainer">
            <c:if test="#{utilBackingBean.localeSelectionVisible}">
                <ul id="localeList">
                    <c:forEach items="#{utilBackingBean.possibleLocales}" var="locale">
                        <li>
                            <h:outputLink id="#{locale.localeMnemonic}Link"
                                          value="#{flowExecutionUrl}&#38;localeParam=#{locale.localeMnemonic}"
                                          rendered="#{utilBackingBean.localeSelectionVisible}">
                                <h:graphicImage id="#{locale.localeMnemonic}Image"
                                                value="/images/icons/#{locale.localeMnemonic}.png"
                                                style="border: none;"/>
                            </h:outputLink>
                        </li>
                    </c:forEach>
                </ul>
            </c:if>
        </div>
    </h:form>

</ui:component>